The Summary Information Component is an Active Server Pages (ASP) component that displays the properties of a document (or directory of documents). Using this component, you can write an ASP application that automatically generates an HTML document listing all the files in a directory with informative document properties included.
Note This component is not officially supported by Microsoft®. Peer support is available on the Active Server Pages mailing list or on the microsoft.public.inetserver.iis.activeserverpages newsgroup.
To subscribe to the Active Server Pages mailing list, send e-mail to listserv@listserv.msn.com
with
subscribe ActiveServerPages [firstname lastname]
in the body of the message, and then follow the directions. (firstname
and
lastname
are optional.)
You can reach the newsgroup through msnews.microsoft.com
and other NNTP
servers.
The following files are used by the Summary Information component:
FileNames | |
SumInfo.dll | The Summary Information component. |
SumInfo.asp | Sample Active Server Pages file that generates a default listing of all files in the current directory with a .doc extension. |
SumInfo2.asp | Sample Active Server Pages file that generates a complete HTML table listing of all files in the current directory with a .doc extension. |
<% Set oVar = Server.CreateObject("IISSample. SummaryInfos") %>
The document properties are accessed through the Summary Information property set associated with all OLE Structured Storage files. The Summary Information property set includes properties such as Author, Title, Date Created, and Subject. The Windows user interface provides a built-in property inspector for this property set. To see it, right-click any structured storage file (such as a Microsoft Excel or a Microsoft Word file) in the Windows Explorer and choose Properties. Then click the Summary tab to view the Summary Information properties for that document.
The Summary Information component supports two display styles for the document properties. A value of 0 generates a default listing in a paragraph format; a value of 1 generates a more complete listing in an HTML table format.
The following example ASP file uses the SumInfos component to generate a default listing of all files in the current directory with a .doc or an .xls extenstion.
<% Set SumInfos = Server.CreateObject("IISSample.SummaryInfos") SumInfos.Style = 0 SumInfos.SetFileSpec ".", "*.doc;*.xls" SumInfos.Write %>
The following example generates a listing in table format:
<% Set SumInfos = Server.CreateObject("IISSample.SummaryInfos") SumInfos.Style = 1 SumInfos.SetFileSpec ".", "*.doc;*.xls" SumInfos.Write %>